x86: Adjust ACPI PM1a/b event/control information retrieval
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 4 Apr 2008 12:03:57 +0000 (13:03 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 4 Apr 2008 12:03:57 +0000 (13:03 +0100)
commit0016222c394b8adcac7ccfd8b917c93d5cd03da1
tree966771178d14f0286aff4f258d440287fb5399d3
parent5b49c9af98fa58881058ea0f9e474f311cd36db0
x86: Adjust ACPI PM1a/b event/control information retrieval

Restore the fallback to v1 fields which got removed as a side effect
of c/s 17249. Additionally, use the correct width from the tables
rather than hardcoded values. Also make the copying code more compact
by using a macro, and print the results earlier to have better
indication whether subsequent failures lead to the information
retrieved getting invalidated.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/acpi/boot.c